﻿<UserControl x:Class="CDoDNSessionScheduler.Page"
    xmlns="http://schemas.microsoft.com/client/2007" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cdodn="clr-namespace:CDoDNSessionScheduler"
    Width="850" Height="500">
    <UserControl.Resources>
    	<Storyboard x:Name="ChecklistGrow">
    		<DoubleAnimationUsingKeyFrames x:Name="ChecklistGrowScaleY" Storyboard.TargetName="ChecklistHolder" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" BeginTime="00:00:00">
    			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
    			<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="2"/>
    		</DoubleAnimationUsingKeyFrames>
    		<DoubleAnimationUsingKeyFrames x:Name="ChecklistGrowScaleX" Storyboard.TargetName="ChecklistHolder" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" BeginTime="00:00:00">
    			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
    			<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="2"/>
    		</DoubleAnimationUsingKeyFrames>
    		<DoubleAnimationUsingKeyFrames x:Name="ChecklistChangeLeft" Storyboard.TargetName="ChecklistHolder" Storyboard.TargetProperty="(Canvas.Left)" BeginTime="00:00:00">
    			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
    			<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="200"/>
    		</DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Canvas x:Name="LayoutRoot" Background="#FF616D88">
        <Canvas Height="Auto" Width="200" MinHeight="50" x:Name="ChecklistHolder" MouseLeftButtonDown="CheckList_MouseLeftButtonDown" MouseLeftButtonUp="CheckList_MouseLeftButtonUp" 
            MouseMove="CheckList_MouseMove" RenderTransformOrigin="0.5,0.5" Cursor="Hand" HorizontalAlignment="Right" VerticalAlignment="Top">
        	<Canvas.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Canvas.RenderTransform>
            <Rectangle x:Name="CheckListBack" Height="Auto" MinHeight="50"  Width="200" RadiusX="8" RadiusY="8" Fill="#FFFFFFFF" Stroke="#FF000000"/>
            <StackPanel Height="Auto" x:Name="CheckList" Width="198" Background="White" Margin="1,16,1,0" />
            <TextBlock Height="13.805" Width="Auto" Canvas.Left="32.5" Text="My Schedule" TextWrapping="Wrap" HorizontalAlignment="Center" 
            FontFamily="Courier New" FontSize="14" Canvas.Top="2.2"/>
        	<Path Height="1" Width="200" Canvas.Top="15.1" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF007CCB" 
        	Data="M1.7560976,143.07317 L158.46341,143.07317"/>
        	<Image Height="12" Width="12" Source="LocalResources/add_16.png" Stretch="Fill" Margin="183,2,0,0" MouseLeftButtonDown="Image_MouseLeftButtonDown" x:Name="ImageAdd" />
        	<Image Height="12" Width="12" Source="LocalResources/undo_16.png" Stretch="Fill" Margin="183,2,0,0" MouseLeftButtonDown="Image_MouseLeftButtonDown" Visibility="Collapsed" x:Name="ImageUndo" />
        </Canvas>
        <Grid Height="460" Width="800" x:Name="SessionGrid" Canvas.Top="15">
            <Grid.RowDefinitions>
                <RowDefinition Height="35"/>
            </Grid.RowDefinitions>
        </Grid>
    </Canvas>
</UserControl>